package com.aspose.cells;

class zbke extends zcj {
   zbke(zn var1, float var2, float var3, zbkq var4) {
      super(var1, var2, var3, var4);
   }

   void a() {
      float var1 = this.c;
      float var2 = this.d;
      float var3 = this.e.k().h();
      float var4 = this.e.k().i();
      com.aspose.cells.b.a.b.a.zf var5 = this.a.e();
      this.a.a(4);
      com.aspose.cells.b.a.b.zq var6 = new com.aspose.cells.b.a.b.zq(var1, var2, var3, var4);
      com.aspose.cells.b.a.b.zc var7 = zbul.a(this.e.l(), var6);
      com.aspose.cells.b.a.b.zm var8 = zbul.a(this.e.m());
      float var9 = 0.0F;
      float var10 = 0.0F;
      if (this.e.l.a.size() == 2) {
         var9 = var4 * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F;
         var10 = var4 * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(1)).a()) / 21600.0F;
      } else if (this.e.l.a.size() == 1) {
         if (((zak)this.e.l.a.get(0)).b() == 327) {
            var9 = var4 * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F;
         } else {
            var9 = var4 / 10.0F;
         }

         if (((zak)this.e.l.a.get(0)).b() == 328) {
            var10 = var4 * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F;
         } else {
            var10 = 3.0F * var4 / 6.0F;
         }
      } else {
         var9 = var4 / 10.0F;
         var10 = 3.0F * var4 / 6.0F;
      }

      var9 = Math.abs(var9);
      var10 = Math.abs(var10);
      com.aspose.cells.b.a.b.a.ze var11;
      switch(this.e.a) {
      case 1:
      case 2:
         if (!this.e.l().a()) {
            var11 = new com.aspose.cells.b.a.b.a.ze();
            var11.a(var1 - var3 / 2.0F, var2, var3, 2.0F * var9, 270.0F, 90.0F);
            var11.b(var1 + var3 / 2.0F, var2 + var9, var1 + var3 / 2.0F, var2 + var10 - var9);
            var11.a(var1 + var3 / 2.0F, var2 + var10 - 2.0F * var9, var3, 2.0F * var9, 180.0F, -90.0F);
            var11.a(var1 + var3 / 2.0F, var2 + var10, var3, 2.0F * var9, 270.0F, -90.0F);
            var11.b(var1 + var3 / 2.0F, var2 + var10 + var9, var1 + var3 / 2.0F, var2 + var4 - var9);
            var11.a(var1 - var3 / 2.0F, var2 + var4 - 2.0F * var9, var3, 2.0F * var9, 0.0F, 90.0F);
            var11.i();
            this.a.a(var7, var11);
         }

         if (!this.e.m().a()) {
            this.a.a(var8, var1 - var3 / 2.0F, var2, var3, 2.0F * var9, 270.0F, 90.0F);
            this.a.a(var8, var1 + var3 / 2.0F, var2 + var10 - 2.0F * var9, var3, 2.0F * var9, 180.0F, -90.0F);
            this.a.a(var8, var1 + var3 / 2.0F, var2 + var10, var3, 2.0F * var9, 270.0F, -90.0F);
            this.a.a(var8, var1 - var3 / 2.0F, var2 + var4 - 2.0F * var9, var3, 2.0F * var9, 0.0F, 90.0F);
            this.a.b(var8, var1 + var3 / 2.0F, var2 + var9, var1 + var3 / 2.0F, var2 + var10 - var9);
            this.a.b(var8, var1 + var3 / 2.0F, var2 + var10 + var9, var1 + var3 / 2.0F, var2 + var4 - var9);
         }
         break;
      case 3:
      case 4:
         if (!this.e.l().a()) {
            var11 = new com.aspose.cells.b.a.b.a.ze();
            var11.a(var1 + var3 / 2.0F, var2, var3, 2.0F * var9, 270.0F, -90.0F);
            var11.b(var1 + var3 / 2.0F, var2 + var9, var1 + var3 / 2.0F, var2 + var10 - var9);
            var11.a(var1 - var3 / 2.0F, var2 + var10 - 2.0F * var9, var3, 2.0F * var9, 0.0F, 90.0F);
            var11.a(var1 - var3 / 2.0F, var2 + var10, var3, 2.0F * var9, 270.0F, 90.0F);
            var11.b(var1 + var3 / 2.0F, var2 + var10 + var9, var1 + var3 / 2.0F, var2 + var4 - var9);
            var11.a(var1 + var3 / 2.0F, var2 + var4 - 2.0F * var9, var3, 2.0F * var9, 180.0F, -90.0F);
            var11.i();
            this.a.a(var7, var11);
         }

         if (!this.e.m().a()) {
            this.a.a(var8, var1 + var3 / 2.0F, var2, var3, 2.0F * var9, 270.0F, -90.0F);
            this.a.a(var8, var1 - var3 / 2.0F, var2 + var10 - 2.0F * var9, var3, 2.0F * var9, 0.0F, 90.0F);
            this.a.a(var8, var1 - var3 / 2.0F, var2 + var10, var3, 2.0F * var9, 270.0F, 90.0F);
            this.a.a(var8, var1 + var3 / 2.0F, var2 + var4 - 2.0F * var9, var3, 2.0F * var9, 180.0F, -90.0F);
            this.a.b(var8, var1 + var3 / 2.0F, var2 + var9, var1 + var3 / 2.0F, var2 + var10 - var9);
            this.a.b(var8, var1 + var3 / 2.0F, var2 + var10 + var9, var1 + var3 / 2.0F, var2 + var4 - var9);
         }
      }

      super.b();
      this.a.a(var5);
   }
}
